<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Album\Controller\Album' => 'Album\Controller\AlbumController',
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'album' => __DIR__ . '/../view',
        ),
    ),
		
		
	/*	/album	Home (list of albums)	index
		/album/add	Add new album	add
		/album/edit/2	Edit album with an id of 2	edit
		/album/delete/4	Delete album with an id of 4	delete
	*/	
		// The following section is new and should be added to your file
		'router' => array(
				'routes' => array(
						'album' => array(
								'type'    => 'segment',
								'options' => array(
										'route'    => '/album[/:action][/:id]',
										'constraints' => array(
												'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
												'id'     => '[0-9]+',
										),
										'defaults' => array(
												'controller' => 'Album\Controller\Album',
												'action'     => 'index',
										),
								),
						),
				),
		),
		
		'navigation' => array(
				'default' => array(
						'Album' => array(
								'label' => 'Album',
								'route' => 'album',
						),
				),
		),
);